﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Administrator/Views/Shared/admin.master" Inherits="System.Web.Mvc.ViewPage<CollegeWebsite.Areas.Administrator.Models.Student>" %>
<%@ Import Namespace="CollegeWebsite.Areas.Administrator.Models" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Create</h2>
 <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm()) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Student infomaton</legend>
            <table style="width: 100%">
            <tr>
            <td style="vertical-align: top">
             <div class="editor-label">
                <%= Html.LabelFor(model => model.StudentName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.StudentName) %>
                <%= Html.ValidationMessageFor(model => model.StudentName) %>
            </div>
             <div class="editor-label">
                <%= Html.LabelFor(model => model.PIN) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.PIN) %>
                <%= Html.ValidationMessageFor(model => model.PIN) %>
            </div>
               <div class="editor-label">
                <%= Html.LabelFor(model => model.DateOfBirth) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.DateOfBirth) %>
                <%= Html.ValidationMessageFor(model => model.DateOfBirth) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Gender) %>
            </div>
            <div class="editor-field">
                <%= Html.RadioButtonFor(model => model.Gender,true) %>Male
                <%= Html.RadioButtonFor(model => model.Gender,false) %>Female
                <%= Html.ValidationMessageFor(model => model.Gender) %>
            </div>
              <div class="editor-label">
                <%= Html.LabelFor(model => model.Status) %>
            </div>
            <div class="editor-field">
                <%= Html.CheckBoxFor(model => model.Status) %> Is Student ?
                <%= Html.ValidationMessageFor(model => model.Status) %>
            </div>
            
            
            </td>
           <td style="vertical-align: top">
            <div class="editor-label">
                <%= Html.LabelFor(model => model.FatherName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.FatherName) %>
                <%= Html.ValidationMessageFor(model => model.FatherName) %>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.MotherName) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.MotherName) %>
                <%= Html.ValidationMessageFor(model => model.MotherName) %>
            </div>
             <div class="editor-label">
                <%= Html.LabelFor(model => model.ResidentialAddress) %>
            </div>
            <div class="editor-field">
                <%= Html.TextAreaFor(model => model.ResidentialAddress,4,20, null) %>
                <%= Html.ValidationMessageFor(model => model.ResidentialAddress) %>
            </div>
            
             <div class="editor-label">
                <%= Html.LabelFor(model => model.PermanentAddress) %>
            </div>
            <div class="editor-field">
                <%= Html.TextAreaFor(model => model.PermanentAddress,4,20,null)%>
                <%= Html.ValidationMessageFor(model => model.PermanentAddress)%>
            </div>
             <div class="editor-label">
                <%= Html.LabelFor(model => model.SupportDetails) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.SupportDetails) %>
                <%= Html.ValidationMessageFor(model => model.SupportDetails) %>
            </div>
            
            
            </td>
            </tr>
            </table>
            
           
            
           
            
            
            
            
         
            
          <%--  <div class="editor-label">
                <%= Html.LabelFor(model => model.Admission.CourseID) %>
                Course
            </div>
            <div class="editor-field">
                <%= Html.DropDownListFor(model => model.Admission.Course.CourseID, new SelectList((List<Course>)ViewData["Course"],"CourseID","CourseName"))%>
                <%= Html.ValidationMessageFor(model => model.Admission.Course.CourseID) %>
            </div>--%>
            
            
            
            
            
           
            
          
            
            <p>
                <input type="submit" value="Create" class="btn" /><%= Html.ActionLink("Back to List", "Index",null, new{@class="btn"}) %>
            </p>
        </fieldset>

    <% } %>

    <script type="text/javascript">
        $(document).ready(function() {
        jQuery("#DateOfBirth").datepicker();
        });
       
    </script>
    

</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
</asp:Content>

